﻿@model smp.ButterflyCakes.Models.FormModels.Order.ComponentPreserveModel

<div class="container">
    <div class="container-fluid">
        @if (ViewBag.Error != null)
        {
            <div class="alert alert-block alert-error">
                <p>@ViewBag.Error</p>
            </div>
        }
        @Html.ValidationSummary(true)
    </div>
    <div class="form-actions">
        @if (Model.IsPreserveValid)
        {
            <strong>Please select a preserve</strong>
        }
        else
        {
            <strong>No compatible preserves</strong>
        }
    </div>
    <form class="form-horizontal" id="editform" url="/order/SavePreserve">
    @Html.HiddenFor(x => x.OrderId)
    @Html.HiddenFor(x => x.ComponentId)
    <div class="control-group   ">
        <label class="control-label" for="PreserveId">
            Select Preserve</label>
        <div class="controls">
            @MvcHtmlString.Create(Model.SelectPreserve.Html)
        </div>
    </div>
    </form>
    <div class="form-actions">
        <button id="save" type="submit" class="btn btn-success">
            Next
        </button>
        <button id="cancel" type="submit" class="btn btn-danger hide">
            Cancel
        </button>
    </div>
</div>
<script type="text/javascript">
</script>
